package com.itheima.service;

import com.itheima.cammon.CommonResult;
import com.itheima.cammon.PageInof;
import com.itheima.pojo.Employee;
import com.itheima.vo.EmployeeVO;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 王同学
 */
@Transactional
public interface EmployeeService {
    EmployeeVO login (String username,String password);

    void clearToken(String token);

    EmployeeVO getById(String id);

    PageInof<Employee> page(String name, Integer page, Integer PageSize);

    //新增员工
    CommonResult add(Employee employee);

    Employee finByIdNumber(String IdNumber);
    void update(Employee employee);
}
